package cn.tedu.charging.order.timer;

import cn.tedu.charging.order.repository.ExceptionBillRepository;
import cn.tedu.charging.order.repository.SuccessBillRepository;
import com.xxl.job.core.handler.annotation.XxlJob;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
@Slf4j
public class OrderCheckFailJob {
    @Autowired
    private SuccessBillRepository successBillRepository;
    @Autowired
    private ExceptionBillRepository exceptionBillRepository;
    @XxlJob("order-check-fail")
    public void orderCheckFail() {
        log.info("订单检查失败定时任务开始执行");
        //1.查看是否存在success
        //2.如果不存在则 则生成exception 发送消息
    }
}
